<?php require_once('header.php'); ?>
<?php //include_once('topwidget.php'); ?>

<div id="contentBox">
<?php include_once('sidebar.php'); ?>

<div id="content">
<h1>Search Results for Contractors</h1>
<?php
	$contractorQuery = "SELECT * FROM users WHERE users.typeid = 3";
	connection();
	$contractors = mysql_query($contractorQuery);

	while($contractor = mysql_fetch_array($contractors)) {
		
?>

    
    <div class="content">
        <div class="resultHeader">
            <h2><a href="contractor.php?contid=<?php echo $contractor['userid']; ?>"><?php echo $contractor['fullname']; ?></a>
                <span class="addcon">
                <span class="address"><?php echo $contractor['address']; ?>, <?php echo $contractor['postal']; ?></span>
                <span class="contact"><a href="">Contact</a></span>
                </span>
            </h2>
            
            <div class="clearb"></div>
            <strong>Skills: </strong>
                <a href="#" class="obtSkill"><?php echo $contractor['skills']; ?></a>
		</div>
        <div class="description">
            <?php echo $contractor['description']; ?>
              <a href="contractor.php?contid=<?php echo $contractor['userid']; ?>">more</a>
        </div>
        <hr />
    	<div class="clearb"></div>
    </div>
	
<?php } ?>       
</div>
<div style="clear:both;"></div>

<?php //include_once('bottomwidget.php'); ?>
<?php include_once('footer.php'); ?>